using System;
using System.Runtime.InteropServices;
using System.Text;

namespace Tool.BaseClass
{
	public class GClass48
	{
		private const int INTERNET_COOKIE_HTTPONLY = 8192;

		[DllImport("wininet.dll", SetLastError = true)]
		private static extern bool InternetGetCookieEx(string url, string cookieName, StringBuilder cookieData, ref int size, int flags, IntPtr pReserved);

		public static string smethod_0(string string_0)
		{
			int num = 512;
			StringBuilder stringBuilder = new StringBuilder(512);
			string result;
			if (!GClass48.InternetGetCookieEx(string_0, null, stringBuilder, ref num, 8192, IntPtr.Zero))
			{
				if (num < 0)
				{
					result = "";
					return result;
				}
				stringBuilder = new StringBuilder(num);
				if (!GClass48.InternetGetCookieEx(string_0, null, stringBuilder, ref num, 8192, IntPtr.Zero))
				{
					result = "";
					return result;
				}
			}
			result = stringBuilder.ToString();
			return result;
		}
	}
}
